<?php

namespace maotool\orm\builder;

use think\db\Raw;

class Query
{

    /**
     * 指定当前操作的数据表.
     *
     * @param string|array|Raw $table 表名
     *
     * @return $this
     */
    public function table($table)
    {
        if (is_string($table) && !str_contains($table, ')')) {
            $table = $this->tableStr($table);
        } elseif (is_array($table)) {
            $table = $this->tableArr($table);
        }

        $this->options['table'] = $table;
        return $this;
    }

    /**
     * 指定AND查询条件.
     *
     * @param mixed $fieldOrClosure 查询字段或闭包
     * @param mixed $op        查询表达式
     * @param mixed $condition 查询条件
     *
     * @return $this
     */
    public function where($fieldOrClosure, $op = null, $condition = null)
    {
        return $this;
    }

}